From c50475de34f66a97ea8fb57c722d7290b9f60d44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Fri, 30 Jul 2021 07:40:48 +0200 Subject: [PATCH] checkbutton: Delegate ::activate to the helper if appropriate If the button is associated with an action, the action is currently only activated when the button is clicked, not when it is activated. --- gtk/gtkcheckbutton.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index 9860641ac6..9471f6d3c6 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -498,7 +498,10 @@ gtk_check_button_real_activate (GtkCheckButton *self) if (priv->active && (priv->group_prev || priv->group_next)) return; - gtk_check_button_set_active (self, !gtk_check_button_get_active (self)); + if (priv->action_helper) + gtk_action_helper_activate (priv->action_helper); + else + gtk_check_button_set_active (self, !gtk_check_button_get_active (self)); } static void -- 2.30.2